tools/ocaml/xenctrl: Use larger chunksize in domain_getinfolist
authorEdwin Török <edvin.torok@citrix.com>
Tue, 1 Nov 2022 17:59:17 +0000 (17:59 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Feb 2023 15:55:25 +0000 (15:55 +0000)
commit5d8f9cfa166c55a308856e7b021d778350edbd6c
treea0fce815916a7c65c10e934c0d5b2cada1692a29
parent03f545b6cf3220b4647677b588e5525a781a4813
tools/ocaml/xenctrl: Use larger chunksize in domain_getinfolist

domain_getinfolist() is quadratic with the number of domains, because of the
behaviour of the underlying hypercall.  Nevertheless, getting domain info in
blocks of 1024 is far more efficient than blocks of 2.

In a scalability testing scenario with ~1000 VMs, a combination of this and
the previous change takes xenopsd's wallclock time in domain_getinfolist()
down from 88% to 0.02%

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Tested-by: Pau Ruiz Safont <pau.safont@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit 95db09b1b154fb72fad861815ceae1f3fa49fc4e)
tools/ocaml/libs/xc/xenctrl.ml